package main

import (
	"github.com/xuri/excelize/v2"
	"log"
)

func main() {
	xFile, err := excelize.OpenFile("D:\\tmp\\export_test.xlsx")
	if err != nil {
		log.Fatal(err)
	}
	log.Printf("sheetList:%v", xFile.GetSheetList())
	for k, sheetName := range xFile.GetSheetList() {
		log.Printf("key:%d name:%s", k, sheetName)
	}
	rows, err := xFile.GetRows(xFile.GetSheetName(0))

	log.Printf("rows:%v", rows)
}
